﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Kunde/WebsiteCustomer.Master" AutoEventWireup="true" CodeBehind="Daek.aspx.cs" Inherits="TireService.Website.Kunde.Daek" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">

<!-- Modal popup when waiting on server postback -->
<script src="../Scripts/ModalPopup.js" type="text/javascript"></script>

<h3>Mine hjulsæt</h3>
    
    <asp:UpdatePanel ID="upEditCustomer" runat="server">
        <ContentTemplate>
        
            <dxwgv:ASPxGridView ID="gvTireSet" runat="server" ClientInstanceName="gvTireSet" 
                KeyFieldName="TireSetId" AutoGenerateColumns="False" EnableCallBacks="False">
                <SettingsLoadingPanel Text="Henter&amp;hellip;" />
                <SettingsPager AlwaysShowPager="false" PageSize="10" Position="Bottom">
                    <Summary 
                        AllPagesText="Sider: {0} - {1} ({2} hjulsæt)" 
                        Text="Side {0} af {1} ({2} hjulsæt)" />
                </SettingsPager>
                <SettingsText EmptyDataRow="Ingen hjulsæt" />
                <SettingsBehavior ConfirmDelete="True" AllowGroup="true" AllowDragDrop="true" />
                <Columns>                    
                    <dxwgv:GridViewDataHyperLinkColumn FieldName="TireSetId" VisibleIndex="3" Caption="Log">
                        <PropertiesHyperLinkEdit NavigateUrlFormatString="~/Kunde/Daeklog.aspx?TireSetId={0}" Text="Vis mønster" >
                        </PropertiesHyperLinkEdit>
                    </dxwgv:GridViewDataHyperLinkColumn>
                    <dxwgv:GridViewDataColumn FieldName="BrandDescription" VisibleIndex="3" Caption="Bilmærke">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="Model" VisibleIndex="3" Caption="Model">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireSetId" VisibleIndex="4" Caption="Dæksæt ID" Visible="false">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireSetStatusId" Visible="false" VisibleIndex="5" Caption="TireSetStatusId">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TireSetStatusDescription" VisibleIndex="5" Caption="Status">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireTypeId" Visible="false" VisibleIndex="5" Caption="TireTypeId">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TireTypeDescription" VisibleIndex="5" Caption="Dæktype">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireBrandId" Visible="false" VisibleIndex="5" Caption="TireBrandId">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TireBrandDescription" VisibleIndex="5" Caption="Mærke">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireBrandNote" VisibleIndex="5" Caption="Model variant">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="Size" VisibleIndex="6" Caption="Fælgstr.">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="Width" VisibleIndex="7" Caption="Bredde">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataColumn FieldName="Height" VisibleIndex="8" Caption="Højde">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireSpeedIndexDescription" VisibleIndex="9" Caption="Hastighedsindex">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireSpeedIndexId" VisibleIndex="10" Visible="false" Caption="TireSpeedIndexId">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireLoadIndexDescription" VisibleIndex="11" Caption="Load index">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="TireLoadIndexId" VisibleIndex="12" Visible="false" Caption="TireLoadIndexId">
                    </dxwgv:GridViewDataColumn>
                    <%--<dxwgv:GridViewDataColumn FieldName="LockingBolt" VisibleIndex="12" Caption="Låsebolt">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="HubCaps" VisibleIndex="13" Caption="Hjul kapsler">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="RunFlatTire" VisibleIndex="14" Caption="Run flat">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="RimProtection" VisibleIndex="15" Caption="Kant beskytter">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="SocketWrenchSize" VisibleIndex="15" Caption="Topnøgle str.">
                    </dxwgv:GridViewDataColumn>
                    <dxwgv:GridViewDataColumn FieldName="ManufactureDate" VisibleIndex="16" Caption="Prod.dato">
                    </dxwgv:GridViewDataColumn>--%>
                </Columns>                                            
            </dxwgv:ASPxGridView>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
